home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / megaman_polarity.swf / scripts / DefineButton2_1293 / BUTTONCONDACTION on(release, keyPress Enter).as
Encoding:
Text File  |  2007-03-20  |  538 b   |  35 lines

  1. on(release, keyPress "<Enter>"){
  2.    stopAllSounds();
  3.    score = 0;
  4.    removeall = 0;
  5.    restart = 0;
  6.    lives = 0;
  7.    if(checkpoint == 5)
  8.    {
  9.       gotoAndPlay(4977);
  10.    }
  11.    else if(checkpoint == 4)
  12.    {
  13.       gotoAndPlay(4169);
  14.    }
  15.    else if(checkpoint == 3)
  16.    {
  17.       if(sabotage == 1)
  18.       {
  19.          gotoAndPlay(3334);
  20.       }
  21.       else
  22.       {
  23.          gotoAndPlay(3204);
  24.       }
  25.    }
  26.    else if(checkpoint == 2)
  27.    {
  28.       gotoAndPlay(2667);
  29.    }
  30.    else
  31.    {
  32.       gotoAndPlay(633);
  33.    }
  34. }
  35.